//app.js
// 验证用户登录身份 & 版本升级
import validation from './utils/validation.js'

// 模态窗方法
import alert from './utils/alert.js'

// 请求模块
import { Index } from './module/index.js'
import { Order } from './module/order.js'
import { Shop } from './module/shop.js'
import { Address } from './module/address.js'
import { Sgin } from './module/sgin.js'
import { Bigwheel } from './module/bigwheel.js'
import { Suspect } from './module/suspect.js'

App({

  // 小程序冷启动方法
  onLaunch () {
    
    // 验证用户登录身份
    validation.getSetting() 

    // 版本升级
    validation.getUpdateManager()
  },

  // 模态窗方法导入
  toast: alert.toast,

  // 请求模块声明导入
  index: new Index(),
  order: new Order(),
  shop: new Shop(),
  sgin: new Sgin(),
  address: new Address(),
  bigwheel: new Bigwheel(),
  suspect: new Suspect()

})